<template>
  <el-card class="box-card" :class="$style.showInfoMations">
    <el-row :gutter="20">
      <el-col :span="12">客户名称：{{item.companyName}}</el-col>
      <el-col :span="12">公司法人：{{item.legalPerson}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col
        v-if="item.countyCode"
        :span="12"
      >省份：{{item.provinceName}} - {{item.cityName}} - {{item.countyName}}</el-col>
      <el-col v-else-if="item.cityCode" :span="12">省份：{{item.provinceName}} - {{item.cityName}}</el-col>
      <el-col v-else-if="item.provinceCode" :span="12">省份：{{item.provinceName}}</el-col>
      <el-col v-else :span="12">省份：</el-col>
      <el-col :span="12">详细地址：{{item.address}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">电话：{{item.telephone}}</el-col>
      <el-col :span="12">备注：{{item.remark}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">所属部门：{{item.orgName}}</el-col>
      <el-col :span="12">客户级别：{{item.level}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">行业：{{item.industry}}</el-col>
      <el-col :span="12">邮政编码：{{item.postalCode}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">传真：{{item.fax}}</el-col>
      <el-col :span="12">公司网址：{{item.officialWebsite}}</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">总人数：{{item.totalNumber}}</el-col>
      <el-col :span="12">注册资金：{{item.registeredCapital}}（万元）</el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">成立年限：{{item.years}}</el-col>
      <el-col :span="12">销售额(元)：{{item.salesVolume}}</el-col>
    </el-row>
  </el-card>
</template>

<script>
import { getDicName } from "~/utils/util";
export default {
  props: ["item", "dics"],
  methods: {
    getDicNameInn(res) {
      // dics 拿错了
      // if (this.dics.length) {
      //   let result = Object.assign({ data: this.dics[0].children }, res);
      //   return getDicName(result);
      // }
    }
  }
};
</script>

<style lang='scss' module>
.showInfoMations {
  div {
    line-height: 1.8rem;
  }
}
</style>
